import request from '@/utils/request';
//课程列表
export const gettableDataApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/list', params);
//课程类别
export const classTypeListApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/classTypeList', params);
//修改课程类别
export const saveClassTypetApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/saveClassType', params);
//删除课程类别
export const deLclassTypeApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/delClassType', params);
//新增课程
export const addClassTypeApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/addClassType', params);
//课程新增
export const saveApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/save', params);
//编辑
export const infoApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/info', params);
// 删除课程
export const delApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/del', params);
// 视频仓库列表
export const videoListApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/videoList', params);
// 视频上传
export const videoUploadApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/videoUpload', params);
//视频修改
export const saveVideoApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/saveVideo', params);
//视频删除
export const delVideoApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/delVideo', params);
//发布课程视频列表
export const roomVideoDataListApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/roomVideo', params);
// 关联后删除视频
export const delRoomVideoApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/delRoomVideo', params);
// 讲堂购买 dev-api/api/ManagerClassroom/addClassRoomPrice
export const addClassRoomPriceApi = (params: object) =>
  request.post('/dev-api/api/ManagerClassroom/addClassRoomPrice', params);
